package com.auxgroup.hr.front.dao.domain;

import com.auxgroup.hr.front.commons.enums.WfTypeEnum;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 销假对象
 * Created by nitongqian on 2019/3/2.
 */
@Entity
@Table(name = "PS_C_WF_CLEA_HDR")
@NamedQuery(name = "PsCWfCleaHdr.findAll", query = "SELECT p FROM PsCWfCleaHdr p")
public class PsCWfCleaHdr extends AbsWfEmplDomain {
    //销假类型
    @Column(name = "C_CLEAVE_TYPE")
    private String cCleaveType;
    //申请详细说明
    @Column(name = "C_APPL_INFO")
    private String cApplInfo;
    //开始日期
    @Column(name = "START_DATE")
    @Temporal(TemporalType.DATE)
    private Date startDate;
    //结束日期
    @Column(name = "END_DATE")
    @Temporal(TemporalType.DATE)
    private Date endDate;

    @Override
    public void baseInit(AbsWfEmplDomain source) {
        PsCWfCleaHdr f = (PsCWfCleaHdr) source;
        setcWfType(WfTypeEnum.WF_STYPE_SEL.getType());// 流程类别
        setcCleaveType(f.getcCleaveType());
        setcApplInfo(f.getcApplInfo());
        setStartDate(f.getStartDate());
        setEndDate(f.getEndDate());
    }

    public String getcCleaveType() {
        return cCleaveType;
    }

    public void setcCleaveType(String cCleaveType) {
        this.cCleaveType = cCleaveType;
    }

    public String getcApplInfo() {
        return cApplInfo;
    }

    public void setcApplInfo(String cApplInfo) {
        this.cApplInfo = cApplInfo;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }
}
